import request from "@/utils/request";

export function queryVIPerRrcord(val) {
  return request({
    url: "visitinfo/select/" + val,
    method: "get",
  });
}
export function queryVIDrug(drugname) {
  return request({
    url: "visitinfo/query/" + drugname,
    method: "get",
  });
}
export function AddCH(data) {
  return request({
    url: "visitinfo/add",
    method: "post",
    data: data,
  });
}
export function SaveEditPrescription(data) {
  return request({
    url: "visitinfo/edit",
    method: "put",
    data: data,
  });
}
export function DrugUsingComputed(data) {
  return request({
    url: "visitinfo/used",
    method: "put",
    data: data,
  });
}
export function delData(data) {
  return request({
    url: "visitinfo/delData",
    method: "post",
    data: data,
  });
}
